package com.hx.base.others;

public class Test {

    public static void main(String[] args) {
        int m = 2;
        int n = 1;
        Test test = new Test();
        test.swap(m, n);
        System.out.println(m + " " + n);
    }

    public void swap(int m, int n) {
        int temp = m;
        m = n;
        n = temp;

    }

}
